﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using OA.DBUtility;

namespace OA.Model
{
    [MappingTable("ProjectPatentView")]
    public class ProjectPatentInfoView : ProjectPatentInfo
    {
    }

    [MappingTable("ProjectPatent")]
    public class ProjectPatentInfo
    {
        #region Model
        private int _id;
        private string _projectid;
        private string _awardcompany;
        private string _patentname;
        private DateTime? _patenttime;
        private string _patentnum;
        private string _patentperson;
        private string _patentremark;
        /// <summary>
        /// 
        /// </summary>
        [DataField("Id")]
        [PrimaryKey(PKBuildType.AutoIncrease)]
        public int Id
        {
            set { _id = value; }
            get { return _id; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("ProjectId")]
        public string ProjectId
        {
            set { _projectid = value; }
            get { return _projectid; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("AwardCompany")]
        public string AwardCompany
        {
            set { _awardcompany = value; }
            get { return _awardcompany; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("PatentName")]
        public string PatentName
        {
            set { _patentname = value; }
            get { return _patentname; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("PatentTime")]
        public DateTime? PatentTime
        {
            set { _patenttime = value; }
            get { return _patenttime; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("PatentNum")]
        public string PatentNum
        {
            set { _patentnum = value; }
            get { return _patentnum; }
        }
        /// <summary>
        /// 
        /// </summary>
        [DataField("PatentPersonName")]
        public string PatentPersonName
        {
            set { _patentperson = value; }
            get { return _patentperson; }
        }
        [DataField("PatentPersonDesc")]
        public string PatentPersonDesc { get; set; }

        /// <summary>
        /// 
        /// </summary>
        [DataField("PatentRemark")]
        public string PatentRemark
        {
            set { _patentremark = value; }
            get { return _patentremark; }
        }
        [DataField("InternalType")]
        public int InternalType { get; set; }
        #endregion Model
    }
}
